<template>
  <div>
    <el-card class="card-container">
      <div class="container">
        <!-- 左边 -->
        <div class="card-left">
          <!-- 设备总数 -->
          <div class="left">
            <p class="yellow">14</p>
            <span>设备总数</span>
          </div>
          <!-- 运行数 -->
          <div class="margin-LR border">
            <p class="green">14</p>
            <span>运行数</span>
          </div>
          <!-- 故障数 -->
          <div class="margin-LR">
            <p class="red">14</p>
            <span>故障数</span>
          </div>
          <!-- 待机数 -->
          <div class="margin-LR border">
            <p class="gray">14</p>
            <span>待机数</span>
          </div>
          <!-- 离线数 -->
          <div class="margin-LR">
            <p class="gray">14</p>
            <span>离线数</span>
          </div>
        </div>
        <!--  右边 -->
        <div class="card-right">
          <!-- 3   4 -->
          <div>
            <img src="./img/icon-3.png" alt="" />
          </div>
          <!-- 按钮 -->
          <div class='btn'>
            <img src="./img/icon-switch-control.svg" alt="" />
            <!-- 点击进行切换 -->
            <p v-if="$route.meta.controlMode">控制模式</p>
            <p v-if="$route.meta.monitorMode">监控模式</p>
          </div>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script setup lang="ts">
</script>

<style scoped lang="less">
.card-container {
  margin: 24px 22px;
  padding: 0 40px;

  .container {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 104px;

    /*左边*/
    .card-left {
      display: flex;

      .margin-LR {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 128px;
      }

      p {
        font-family: "DINCond-Medium";
        font-style: normal;
        font-weight: 500;
        font-size: 28px;
        line-height: 26px;
      }

      span {
        font-style: normal;
        font-weight: 400;
        font-size: 12px;
        line-height: 18px;
        color: #595959;
      }

      .yellow {
        color: #f2994a;
      }

      .green {
        color: #1aa367;
      }

      .red {
        color: #eb5757;
      }

      .gray {
        color: #8c8c8c;
      }

      .border {
        border-left: 1px solid rgba(0, 0, 0, 0.06);
        border-right: 1px solid rgba(0, 0, 0, 0.06);
      }

      .left {
        display: flex;
        flex-direction: column;
        width: 128px;
      }
    }

    /*右边*/
    .card-right {
      display: flex;
      justify-content: space-between;
      align-items: center;

      /*模式按钮*/
      .btn {
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 140px;
        height: 40px;
        background: #f2994a;
        border: 1px solid #fc9030;
        box-shadow: 0px 0px 8px rgba(242, 153, 74, 0.05),
          0px 8px 16px rgba(242, 153, 74, 0.25);
        border-radius: 8px;
        margin-left: 40px;

        p {
          font-family: "Source Han Sans CN";
          font-style: normal;
          font-weight: 500;
          font-size: 14px;
          line-height: 20px;
          color: #ffffff;
        }
      }
    }
  }
}
</style>